package cn.singno.bob.jpa.test;

public class AA {

	
	public static void main(String[] args) {
		String s = "select o.id, o.name from A a, O o where o.id = ?";
		StringBuffer sb = new StringBuffer(s);
		
		String ss = sb.substring(sb.indexOf("from"));
		System.out.println(ss);
	}
}
